﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ViewTestResults.aspx.cs" Inherits="Teacher_ViewTestResults" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">


    <asp:DropDownList ID="ddlStudents" runat="server" 
        DataSourceID="SqlDataSource1" DataTextField="UserName" 
        DataValueField="UserId">
    </asp:DropDownList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:dbConnectionString %>" 
        SelectCommand="SELECT aspnet_Roles.RoleName, aspnet_Users.UserName, aspnet_Users.UserId FROM aspnet_Roles CROSS JOIN aspnet_Users WHERE (aspnet_Roles.RoleName = 'Student')">
    </asp:SqlDataSource>
    <asp:DropDownList ID="ddlTestNames" runat="server" 
        DataSourceID="SqlDataSource2" DataTextField="Title" DataValueField="Title">
    </asp:DropDownList>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:dbConnectionString %>" 
        SelectCommand="SELECT [Title] FROM [Assessments]"></asp:SqlDataSource>
    <br />
    <br />
    <asp:Button ID="btnFetchFormattedForTesting" runat="server" 
        Text="Get Test Results" onclick="btnFetchFormattedForTesting_Click" />
    

    <br />
    <asp:Label ID="lblResults" runat="server"></asp:Label>
    

</asp:Content>

